﻿#ifndef DOWNLOADAUTOMATICCMD_H
#define DOWNLOADAUTOMATICCMD_H

#include "Command/BaseCmd.h"
#include "DataType/AutomaticStruct.h"
#include "Protocol/CloudProtocol.h"
#include "DataType/TimeConditionStruct.h"

class DownloadAutomaticCmd : public BaseCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = CloudProtocol::DownloadAutomatic};

    Q_INVOKABLE explicit DownloadAutomaticCmd(QObject *parent = 0);


    Package toPackage();
    void unPackage(Package package);

    quint16 automaticIndex() const;
    void setAutomaticIndex(const quint16 &automaticIndex);

    AutomaticStruct automatic() const;
    void setAutomatic(const AutomaticStruct &automatic);

private:
    quint16 m_automaticIndex;
    AutomaticStruct m_automatic;

};

#endif // DOWNLOADAUTOMATICCMD_H
